﻿package events
{
	import flash.events.Event;
	import flash.geom.Point;
	
	public class PhysicEvent extends Event
	{
		public var point : Point ; 
		public var point2 : Point ; 
		public static const START : String = "start" ;
		public static const STOP : String = "stop" ;
		public static const PAUSE : String = "pause" ;
		public static const UPDATE: String = "update" ;
		
		public function PhysicEvent(type : String, point:Point=null, point2:Point=null ) 
		{
			super( type, true ) ;
			this.point = point ; 
			this.point2 = point2 ; 
		}
		override public function clone() : Event
		{
			return new PhysicEvent( type, point, point2 ) ;
		}		
		override public function toString() : String
		{
			return "[PhysicEvent : " + type + " " + point + "]" ;
		}		
	}
}